﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entities
{
    // Entity DonHang map with SanPham Table
    public class DonHang
    {
        // properties
        private int maDH;
        private int maKH;
        private string hoTenNguoiNhan;
        private string diaChi;
        private string sDT;
        private DateTime ngayMua;
        private DateTime ngayGiao;
        private int maPT_ThanhToan;
        private int maHT_GiaoHang;
        private bool daGiao;
        // Setters and Getters
        public int MaDH
        {
            get { return maDH; }
            set { maDH = value; }
        }
        public int MaKH
        {
            get { return maKH; }
            set { maKH = value; }
        }
        public string HoTenNguoiNhan
        {
            get { return hoTenNguoiNhan; }
            set { hoTenNguoiNhan = value; }
        }
        public string DiaChi
        {
            get { return diaChi; }
            set { diaChi = value; }
        }
        public string SDT
        {
            get { return sDT; }
            set { sDT = value; }
        }
        public DateTime NgayMua
        {
            get { return ngayMua; }
            set { ngayMua = value; }
        }
        public DateTime NgayGiao
        {
            get { return ngayGiao; }
            set { ngayGiao = value; }
        }
        public int MaPT_ThanhToan
        {
            get { return MaPT_ThanhToan; }
            set { MaPT_ThanhToan = value; }
        }
        public int MaHT_GiaoHang
        {
            get { return maHT_GiaoHang; }
            set { maHT_GiaoHang = value; }
        }
        public bool DaGiao
        {
            get { return daGiao; }
            set { daGiao = value; }
        }
        // Constructors
        public DonHang()
        {
 
        }
        public DonHang(int maDH, int maKH, string hoTenNguoiNhan, string diaChi, string sDT, DateTime ngayMua,
            DateTime ngayGiao, int maPT_ThanhToan, int maHT_GiaoHang, bool daGiao)
        {
            this.maDH = maDH;
            this.maKH = maKH;
            this.hoTenNguoiNhan = hoTenNguoiNhan;
            this.diaChi = diaChi;
            this.sDT = sDT;
            this.ngayMua = ngayMua;
            this.ngayGiao = ngayGiao;
            this.maPT_ThanhToan = maPT_ThanhToan;
            this.maHT_GiaoHang = maHT_GiaoHang;
            this.daGiao = daGiao;
        }
    }
}
